package org.bling.star.server.enums;

import org.bling.star.common.connection.IDbConnection;


public enum SPISelectorEnum {
    //
    DB(1, IDbConnection.class),
    ;
    private Integer code;
    private Class value;

    SPISelectorEnum(Class value) {
        this.value = value;
    }

    SPISelectorEnum(int i, Class<IDbConnection> iDbConnectionClass) {

    }

    public static org.bling.star.common.enums.ServerType getServerType(Class code) {
        if (code != null) {
            return org.bling.star.common.enums.ServerType.SERVER;
        }
        return org.bling.star.common.enums.ServerType.CLIENT;
    }

    public Class getValue() {
        return this.value;
    }
}

